package ${cfg.parent}.${package.ModuleName}.wrapper;

<#if cfg.entity??>
    <#list cfg.entity.joinTables as joinTable>
        <#if joinTable.targetEntity.moduleName != package.ModuleName>
import ${cfg.parent}.${joinTable.targetEntity.moduleName}.wrapper.${joinTable.targetEntity.name}Wrapper;
        </#if>
    </#list>
</#if>
import ${package.Entity}.${table.entityName};
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
*
* ${table.comment!}包装类
*
* @tableName ${table.name}
* @author ${author}
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="${entity}对象包装类", description="${table.comment!}包装类")
public class ${entity}Wrapper extends ${entity} {
<#if cfg.entity??>
    <#list cfg.entity.joinTables as joinTable>

    /**
     * ${joinTable.sourceEntityField.comment}
     */
    @ApiModelProperty(value = "${joinTable.sourceEntityField.comment}", notes = "${joinTable.sourceEntity.name}.${joinTable.sourceEntityField.name} <-> ${joinTable.targetEntity.name}.${joinTable.targetEntityField.name}")
    private ${joinTable.targetEntity.name}Wrapper ${joinTable.alias?uncap_first}Wrapper;
    </#list>
</#if>
}
